/**
 * 
 * @Project le cOeur - Data Virtualization
 * @Date 08.12.2012
 * @Author Aebi Pascal, Kocher Marc
 * @School BFH-TI Biel, Bachelor Thesis
 *
 */

package main.implementation.method;

import java.util.ArrayList;
import java.util.List;

import main.framework.resource.DataGetterResourceMethod;
import main.framework.resource.Resource;
import main.framework.resource.ResourceData;

/**
 * This class gets the information about the battery.
 */
public class GetBattery extends DataGetterResourceMethod {

	@Override
	public void execute(Resource resource) {
		List<String[]> rows = new ArrayList<>();
		for (Resource child : resource.getChildren()) {
			String[] data = new String[1];
			rows.add(data);
		}
		super.data = new ResourceData(rows, resource);
	}
	
}
